<div class="tot_login">
	<div class="login">
   <div class="tot_mer">
	<h2>Add Merchant</h2>

	<?php if(strcmp($error, '') !== 0 ):?>
		<div>
			<?php echo $error; ?>
		</div>
   <?php endif; ?>

	    <div class="login_form">
        <div class="form1">
		<form action="<?php echo site_url('merchants/add/'.$edit_data['id']);?>" method="POST">
			<div class="my_field">
				<p><span class="a">Name </span>: <input type="text" name="name"  value="<?php echo set_value('name', $edit_data['name']); ?>" /></p>
				<?php echo form_error('name', '<div class="error er">', '</div>'); ?>
			
			</div>
		
			<div class="my_field" >
				<p><span class="b">Merchant ID</span>: <input type="text" name="merchant_id"  value="<?php echo set_value('merchant_id', $edit_data['merchant_id']); ?>" /></p>
				<?php echo form_error('merchant_id', '<div class="error er">', '</div>'); ?>
			</div>
			

			<div class="my_field">
				<p><span class="c">Marketplace ID </span>: <input type="text" name="marketplace_id"  value="<?php echo set_value('marketplace_id', $edit_data['marketplace_id']); ?>" /></p>
				<?php echo form_error('marketplace_id', '<div class="error er">', '</div>'); ?>
			</div>
			

			<div class="my_field" >
				<p><span class="d">Access Key </span>: <input type="text" name="access_key"  value="<?php echo set_value('access_key', $edit_data['access_key']); ?>" /></p>
				<?php echo form_error('access_key', '<div class="error er">', '</div>'); ?>
			</div>
			

			<div class="my_field" >
				<p><span class="e">Secret Key </span>: <input type="text" name="secret_key"  value="<?php echo set_value('secret_key', $edit_data['secret_key']); ?>" /></p>
				<?php echo form_error('secret_key', '<div class="error er">', '</div>'); ?>
			</div>
			

			<div class="my_field" >
				<p>
					<span class="f">Region </span>: 
					<?php 

						echo form_dropdown('region', $regions, $edit_data['region']);
					?>
				</p>
				<?php echo form_error('region', '<div class="error er">', '</div>'); ?>
			</div>
			

			<div class="my_field" >
				<p>
					<span class="g">Enable Reports </span>: 
					<?php echo form_dropdown( 'reports_enabled',array('y' => 'Yes', 'n' => 'No'), $edit_data['reports_enabled']);?>
				</p>
				<?php echo form_error('reports_enabled', '<div class="error er">', '</div>'); ?>
			</div>
			

			<div class="my_field">
            	<button type="submit" >Submit</button>
            </div>

			
		</form>
        </div>
        </div>


</div>
</div>
</div>
